package cn.opencodes.framework.core.base;

import java.util.List;

import cn.opencodes.framework.tools.vo.PageBean;
import cn.opencodes.framework.tools.vo.Query;
/**
 * 公共基础服务(增删改查)
 * @author hj
 */
public interface BaseService<T> {
	int save(T t);
	
	int saveBatch(List<T> list);
	
	int update(T t);
	
	int delete(Long id);
	
	int deleteBatch(Long[] id);

	T query(Long id);
	
	PageBean queryByPage(Query query);
	
	List<T> queryList(Query query);
	
	int replaceBatch(List<T> list);
}
